import 'element-ui/lib/theme-chalk/index.css';
import Vue from 'vue'
import App from './App.vue'
import store from './store/index'
import axios from "axios";
import router from "@/router";
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
// import * as echarts from 'echarts';
//富文本编辑器
// import VueQuillEditor from 'vue-quill-editor'
// Vue.use(VueQuillEditor)

Vue.use(ElementUI);
// Vue.use(Element,{size: 'small',zIndex: 3000});

Vue.config.productionTip = false
Vue.prototype.$http = axios
//今后，在每个.vue组件中要发起请求，直接调用this.$http.xxx

// Vue.prototype.$echarts = echarts
//全局配置axios的请求根路径
//把axios挂载到Vue.prototype上，供每个.vue组件的实例直接使用
//axios.defaults.baseURL='http://47.93.251.16:8081';
axios.defaults.baseURL = 'http://localhost:9999';
const instance = axios.create({
  timeout: 1000 * 1000000,
  withCredentials: true,
  baseURL: '/api', // 方式二：通过/api别名指定后端路由
  headers: {
    'Content-Type': 'application/x-www-form-urlencoded',
    Accept: 'application/json'
  }
})

new Vue({
  render: h => h(App),
  store,
  router
}).$mount('#app')
